package com.yu.rpc.core.fault.tolerant;

import com.yu.rpc.core.model.RPCResponse;

import java.util.Map;

/**
 * 快速失败容错策略
 */
public class FailFastTolerantStrategy implements TolerantStrategy {
    @Override
    public RPCResponse doTolerant(Map<String, Object> context, Exception e) {
        throw new RuntimeException("服务报错", e);
    }
}
